package com.ambimmort.shj.action.user;

/**
 * Created by Administrator on 2015/7/31.
 */

import com.ambimmort.shj.service.user.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

@Controller("/action/user/login_out.do")
public class Login_out {
    @Autowired
    private UserService userService;

    /**
     *
     * @param request
     * @param user
     * @return
     * @throws Throwable
     */

    @RequestMapping("/action/user/login_out.do")
    @ResponseBody
    public String action_UserLogin_out(HttpServletRequest request, @RequestParam("user") String user)  {
            return  userService.login_outDomain(request, user);
    }
}
